#pragma once
#include <vector>
#include <algorithm>
namespace DataStructureAndAlgorithm {
	namespace Differential
	{
		class OneDifferential {
			std::vector<int> help;
			std::vector<int>& vec;
		public:
			OneDifferential(std::vector<int>& v) :vec(v)
			{
				help.resize(v.size()+1);
			}
			~OneDifferential(){}
			bool insert(int num, int l, int r);
			void getAns();
		};
	}
}